package com.acme.bankapp.exceptions;

public class NotEnoughFundsException extends BankException {

    protected double amount;
    public NotEnoughFundsException(final double amount) {
        this.amount = amount;
    }

    public NotEnoughFundsException(String message) {
        super(message);
    }

    /**
     * Method returns amount of the money, that client try to withdraw.
     * @return
     */
    public double getAmount() {
        return amount;
    }
}
